#!/bin/bash
Domain="mirrors.imgo.tv"
DomainPriv="mirrors-priv.imgo.tv"
ping 10.100.5.76 -c 3 &>/dev/null
if [ $? -eq 0 ]; then
    Domain="mirrors-in.imgo.tv"
    DomainPriv="mirrors-priv-in.imgo.tv"
fi

base="http://$Domain/mgtv-release-6-1.x86_64.rpm"
priv="http://$DomainPriv/mgtv-release-priv-6-1.x86_64.rpm"

#安装仓库
rpm -ivh $base
rpm -ivh $priv
